package com.work.demo;

import cn.hutool.core.date.ChineseDate;

import java.io.IOException;
import java.io.InputStream;
import java.util.*;

public class Demo {

    public static void main(String[] args) {
        test4();
    }

    public static void test1(){
        ChineseDate chineseDate = new ChineseDate(new Date());
        System.out.println(chineseDate.getCyclical() + " " + chineseDate.getChineseMonthName() + " " + chineseDate.getChineseDay());
    }

    public static void test2(){
        List<String> list = new ArrayList<>();
        list.add("3");
        list.add("2");
        list.add("1");
        System.out.println(list);
        Object[] objects = list.toArray();
        System.out.println(Arrays.toString(objects));
    }

    public static void test3(){
        Map<String,Object> map = new HashMap<>();
    }

    public static void test4() {
        Class<?> class1 = null;
        try {
            class1 = Class.forName("com.mysql.jdbc.Driver.class");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        System.out.println(class1);
    }

    public static void test5(){
        InputStream inputStream = new InputStream() {
            @Override
            public int read() throws IOException {
                return 0;
            }
        };
    }

}
